package com.wzh.other;

import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.util.HexUtil;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @description:
 * @author: WZH
 * @time: 2022/2/15 14:10
 */
public class Demo5 {

    public static void main(String[] args) {
        String str ="test";
        System.out.println("test string :" +str);
        String hexStr = HexUtil.encodeHexStr(str.getBytes());


//        ArrayList<String> strings = ListUtil.toList(str);
        List<String> strings =Arrays.asList(str.split(""));

        for (int i = 0; i < strings.size(); i++) {
            System.out.println(strings.get(i));
        }

    }
}
